import { createStatic_mana } from '../../../../global/Func/uniFunc/Func';
import { uni_static_focusDisplayEl } from './Classes/cla_uni_static_focusDisplayEl';
import { win_static_focusDisplayEl } from './Classes/cla_win_static_focusDisplayEl';
import {
  win_static_focusDisplay,
  win_static_focusDisplay_namespace,
} from './DataDefine/sourceData';

window[win_static_focusDisplay] = new win_static_focusDisplayEl();

/**
 * 创建 或 使用 window 挂载 的 ListenEvent 信息
 * @param {string} spacename 命名空间
 * @returns {uni_static_focusDisplayEl}
 */
function create_static_focusDisplay_mana(spacename) {
  return createStatic_mana(
    win_static_focusDisplay,
    spacename,
    uni_static_focusDisplayEl,
    win_static_focusDisplay_namespace
  );
}

export { create_static_focusDisplay_mana };
